/* 
 * File:   immorph.h
 * Author: gustavo
 *
 * Created on July 22, 2011, 4:53 AM
 */

#ifndef IMMORPH_H
#define	IMMORPH_H

#include "../image.h"
#include "../../matrix/matrix.h"

#ifdef	__cplusplus
extern "C" {
#endif


	//void image_morph_erode( Image * Gray, Matrix * SE, Image ** Erode );
	//void image_morph_dilate( Image * Gray, Matrix * SE, Image ** Dilate );
	
	void image_morph_dilate(Matrix * Mat, Matrix * SE, Matrix ** Dilate);
	void image_morph_erode(Matrix * Mat, Matrix * SE, Matrix ** Erode);
	
	void image_select4(Image Gray, int x, int y, Image ** Sel);
	void image_select8(Image Gray, int x, int y, Image ** Sel);
	
	void image_label4(Image Gray, Image ** Label, int * count);
	
	void image_label8(Image Gray, Image ** Label, int * count);


#ifdef	__cplusplus
}
#endif

#endif	/* IMMORPH_H */

